﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infinity.Types.Ranges
{
	public class FloatRange : Range<float>
	{
		public FloatRange(float start = 0, float? end = null, float by = 1)
			: base(start, end)
		{
			By = by;
		}

		public override float Next(float value)
		{
			return value + By;
		}

		public float By { get; protected set; }
	}
}